import request from '@/utils/request'

// 查询训练列表
export function listRing_training(query) {
  return request({
    url: '/ring/ring_training/list',
    method: 'get',
    params: query
  })
}

// 查询训练详细
export function getRing_training(id) {
  return request({
    url: '/ring/ring_training/' + id,
    method: 'get'
  })
}

// 新增训练
export function addRing_training(data) {
  return request({
    url: '/ring/ring_training',
    method: 'post',
    data: data
  })
}

// 修改训练
export function updateRing_training(data) {
  return request({
    url: '/ring/ring_training',
    method: 'put',
    data: data
  })
}

// 删除训练
export function delRing_training(id) {
  return request({
    url: '/ring/ring_training/' + id,
    method: 'delete'
  })
}
